package net.dl.ss.domain;

/**
 * @author yakovlev.yuriy@gmail.com
 * @since 12.8.2008
 */
public class CategAdjudicator {
	private Long id;
	private Long categoryId;
	private Long adjudicatorId;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
	public Long getAdjudicatorId() {
		return adjudicatorId;
	}
	public void setAdjudicatorId(Long adjudicatorId) {
		this.adjudicatorId = adjudicatorId;
	}
	
	public String toXML() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("<categAdjudicator>");
		buffer.append("<id>" + id + "</id>");
		buffer.append("<categoryId>" + categoryId + "</categoryId>");
		buffer.append("<adjudicatorId>" + adjudicatorId + "</adjudicatorId>");
		buffer.append("</categAdjudicator>");
		return buffer.toString();
	}

}
